<?php /*a:2:{s:63:"E:\wwwroot\weidabiaozhi\application\wechat\view\tags\index.html";i:1524902274;s:66:"E:\wwwroot\weidabiaozhi\application\admin\view\public\content.html";i:1524902274;}*/ ?>
<!-- 右则内容区域 开始 -->

<div class="layui-card">
    <!--<?php if(!(empty($title) || (($title instanceof \think\Collection || $title instanceof \think\Paginator ) && $title->isEmpty()))): ?>-->
    <div class="layui-header notselect">
        <div class="pull-left"><span><?php echo htmlentities($title); ?></span></div>
        <div class="pull-right margin-right-15 nowrap">

<!--<?php if(auth("$classuri/add")): ?>-->
<button data-modal="<?php echo url('add'); ?>" data-title="添加标签" class='layui-btn layui-btn-sm'> 添加标签</button>
<!--<?php endif; ?>-->

<!--<?php if(auth("$classuri/del")): ?>-->
<button data-update data-field='delete' data-action='<?php echo url("$classuri/del"); ?>' class='layui-btn layui-btn-sm layui-btn-danger'> 删除标签</button>
<!--<?php endif; ?>-->

<!--<?php if(auth("$classuri/sync")): ?>-->
<button data-load="<?php echo url('sync'); ?>" class='layui-btn layui-btn-sm'> 远程获取标签</button>
<!--<?php endif; ?>-->

</div>
    </div>
    <!--<?php endif; ?>-->
    <div class="layui-card-body">
<!-- 表单搜索 开始 -->
<form class="layui-form layui-form-pane form-search" action="<?php echo request()->url(); ?>" onsubmit="return false" method="get">
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">标 签</label>
        <div class="layui-input-inline">
            <input type="text" name="name" value="<?php echo htmlentities((app('request')->get('name') ?: '')); ?>" placeholder="请输入标签" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>
</form>
<!-- 表单搜索 结束 -->

<form onsubmit="return false;" data-auto="true" method="post">
    <?php if(empty($list)): ?>
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <?php else: ?>
    <input type="hidden" value="resort" name="action"/>
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='list-table-check-td'>
                <input data-auto-none="" data-check-target='.list-check-box' type='checkbox'/>
            </th>
            <th class='text-center'>ID</th>
            <th class='text-left'>标签名称</th>
            <th class='text-left'>标签类型</th>
            <th class='text-right'>粉丝数</th>
            <th class='text-center'>操作</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach($list as $key=>$vo): ?>
        <tr>
            <td class='list-table-check-td'>
                <input class="list-check-box" value='<?php echo htmlentities($vo['id']); ?>' type='checkbox'>
            </td>
            <td class='text-center'><?php echo htmlentities((isset($vo['id']) && ($vo['id'] !== '')?$vo['id']:'0')); ?></td>
            <td class='text-left'><?php echo htmlentities((isset($vo['name']) && ($vo['name'] !== '')?$vo['name']:'')); ?></td>
            <td class='text-left'><?php echo $vo['id']<100 ? "系统标签"  :  "自定义标签"; ?></td>
            <td class='text-right'><?php echo htmlentities((isset($vo['count']) && ($vo['count'] !== '')?$vo['count']:'')); ?></td>
            <td class='text-center nowrap'>

                <?php if(auth("$classuri/edit")): ?>
                <span class="text-explode">|</span>
                <!--<?php if($vo['id'] >= 100): ?>-->
                <a data-modal='<?php echo url("$classuri/edit"); ?>?id=<?php echo htmlentities($vo['id']); ?>' data-title="编辑标签">编辑</a>
                <!--<?php else: ?>-->
                <a class="color-desc">编辑</a>
                <!--<?php endif; ?>-->
                <?php endif; if(auth("$classuri/del")): ?>
                <span class="text-explode">|</span>
                <!--<?php if($vo['id'] >= 100): ?>-->
                <a data-update="<?php echo htmlentities($vo['id']); ?>" data-field='delete' data-action='<?php echo url("$classuri/del"); ?>'>删除</a>
                <!--<?php else: ?>-->
                <a class="color-desc">删除</a>
                <!--<?php endif; ?>-->
                <?php endif; ?>
            </td>
        </tr>
        <?php endforeach; ?>
        </tbody>
    </table>
    <?php if(isset($page)): ?><p><?php echo $page; ?></p><?php endif; endif; ?>
</form>
</div>
</div>

<!-- 右则内容区域 结束 -->